package com.hinnotek.amoeba.adapters.old

import android.view.View
import android.widget.*
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.hinnotek.amoeba.R

class FileAdapter : BaseQuickAdapter<String?, BaseViewHolder>(R.layout.item_file) {
    override fun convert(holder: BaseViewHolder, item: String?) {
        Glide.with(context).load(item).into((holder.getView<View>(R.id.img) as ImageView))
    }
}